﻿function redirect(url) {
 window.location.href = url;
}

function submitForm(element, url) {
 element.attr('action', url);
 element.submit();
}